package com.example.demo.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import com.example.demo.service.AdminService;
import com.example.demo.dao.AdminMapper;
import com.example.demo.bean.Admin;

@Service
public class AdminServiceImpl implements AdminService {

	@Autowired
	private AdminMapper adminMapper;

	public java.util.List<Admin> queryAdminByPage (java.util.Map<String, Object> params){
		return this.adminMapper.selectAdminByPage(params);
	}

	public int queryAdminCount (java.util.Map<String, Object> params){
		return this.adminMapper.selectAdminCount(params);
	}

	public Admin queryAdminOne (java.util.Map<String, Object> params){
		return this.adminMapper.selectAdminOne(params);
	}

	public int updateAdmin (java.util.Map<String, Object> params){
		return this.adminMapper.updateAdmin(params);
	}

	public int deleteAdmin (java.util.List<String> idList){
		return this.adminMapper.deleteAdmin(idList);
	}

	public int insertAdmin (java.util.Map<String, Object> params){
		return this.adminMapper.insertAdmin(params);
	}

}